import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
import Index from '@/page/index'
import Detail from '@/page/detail'
import Analysis from '@/page/detail/analysis'
import Count from '@/page/detail/count'
import Forecast from '@/page/detail/forecast'
import Publish from '@/page/detail/publish'
import OrderList from '@/page/orderList'

Vue.use(Router)

export default new Router({
	//mode: 'history',
	routes: [{
			path: '/',
			component: Index
		},
		{
			path: '/detail',
			component: Detail,
			children: [{
					path: 'analysis',
					component: Analysis
				},
				{
					path: 'count',
					component: Count
				},
				{
					path: 'forecast',
					component: Forecast
				},
				{
					path: 'publish',
					component: Publish
				}
			]
		},
		{
			path: '/orderList',
			component: OrderList
		}
	]
})